PopupField displays a window in front of everything else containing the contents of a specified field, this window has the same TEXT area as the field and is displayed in the same screen position. It then waits until the mouse is clicked and which point it removes the window. The argument to PopupField is a STRING containing a chunk expression which identifies the field. The window style used is: rectangle/shadow for rectangle/shadow fields; standard document for scrolling fields; round cornered for transparent fields and alert box for opaque fields. For scrolling and transparent fields the field name is displayed as the window title.
-- part contents for card part 9
----- text -----
WARNING: (a) this XCMD allows you to violate the Apple User Interface Guidelines! (b) this XCMD manipulates (officially…) undocumented globals and has only been tested on a Mac+, it should work on an SE but I don't know about II, IIx or SE/30's. USE AT YOUR OWN RISK.
SetCursor allows you to set the screen cursor to any location and also to (de)couple the cursor from mouse movements… Any argument errors detected by SetCursor are returned in the External_Error global.
To move the cursor use "SetCursor <h-coord>,<v-coord>". To decouple the cursor from the mouse use "SetCursor free", BE CAREFUL with this as there is no way to recouple it using the keyboard/menus! A decoupled cursor can still be moved using SetCursor. To couple the mouse and the cursor again use either "SetCursor reset", which puts the cursor back to where to was when decoupled, or "SetCursor mouse", which leaves the cursor where it is.
-- part contents for card part 12
----- text -----
The XMCD's in this stack are © 1989 by Nigel Perry, portions of the code are © Symantec Inc. You may use these XCMD's freely in your stacks, provided that you do not sell, or in any other way profit from, those stacks (this includes ShareWare). Comments, suggestions, complaints, praise, requests for custom XCMD's (£££…) etc. to: